Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhfogh xml yaml #957

Merged
merged 7 commits into from
Jul 8, 2024
Merged

Conversation

rhfogh
Copy link
Collaborator

@rhfogh rhfogh commented Jul 4, 2024

Proposed improvement of yaml linting. See comments in .yamllint.yaml

Note that by setting # % YAML 1.2 at the head of the files, we ensure that only true and false (with various capitalizations) are treated as Booleans - this is what ruamel-yaml (which follows Yaml 1.2) does anyway. By keeping the truthy rule we further limit Booleans to all-lower-case.

Unfortunately there seems to be no way to ensure a single spelling for either null, .inf, or .nan

I have added further rules to block using empty elements as nulls (so nulls have to be added explicitly), and to ban numbers like 010.

Anyway, I would propose that there should never be any need to put in yamllint-disable statements (except for line length).

@elmjag
Copy link
Contributor

elmjag commented Jul 5, 2024

Nice!

How about we merge this to develop branch instead?

This is not needed for adding YAML config files support. Let's keep the scope xml_yaml_conversation branch focused on that.

@fabcor-maxiv
Copy link
Contributor

How about we merge this to develop branch instead?

@rhfogh I agree that this should be done on develop branch first.

@marcus-oscarsson marcus-oscarsson merged commit 93e7af8 into mxcube:xml_yaml_conversion Jul 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants